package com.onpositive.dataminer.rcp;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class ObjectsPerspectiveFactory implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {
		
		IFolderLayout createFolder = layout.createFolder("l0",
				IPageLayout.LEFT, (float) 0.18, IPageLayout.ID_EDITOR_AREA);
		createFolder.addView("com.onpositive.dataminer.rcp.providers");
		createFolder.addView("com.onpositive.dataminer.rcp.viewObjects");
		
		//com.onpositive.dataminer.rcp.objectRawText
		createFolder = layout.createFolder("objDet",
				IPageLayout.BOTTOM, (float) 0.5, IPageLayout.ID_EDITOR_AREA);
		createFolder.addView("com.onpositive.dataminer.rcp.objectDetails");
		createFolder.addView("com.onpositive.dataminer.rcp.objectSections");
		createFolder.addView("com.onpositive.dataminer.rcp.objectRawText");
		createFolder.addView("com.onpositive.dataminer.rcp.parserInspectionView");
		layout.addView("com.onpositive.dataminer.rcp.objectImages",IPageLayout.BOTTOM,0.3f,"objDet");
		layout.setEditorAreaVisible(false);
		layout.getViewLayout("com.onpositive.dataminer.rcp.providers")
		.setCloseable(false);
		layout.getViewLayout("com.onpositive.dataminer.rcp.objectDetails")
				.setCloseable(false);
		layout.getViewLayout("com.onpositive.dataminer.rcp.objectImages")
		.setCloseable(false);
		//com.onpositive.dataminer.rcp.providers
	}

}
